<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/9/30
 * Time: 17:08
 */

namespace app\common\validate;


class StaffValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'job_number' => 'require',
        'department_id' => 'isPositiveInteger'
    ];
    protected $message = [
        'name.require' => '请输入员工名称',
        'job_number.require' => '请输入员工工号',
        'department_id.isPositiveInteger' => '请选择部门',
    ];
}